package org.xutils.main;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by ZZH on 4/20/21.
 *
 * @Date: 4/20/21
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description:
 */
@Table(name = "user")
public class DemoModel {
    @Column(name = "id", isId = true, autoGen = true)
    public String id;
    @Column(name = "user_name")
    public String userName;
    public int age;
    @Column(name = "extra")
    public String extra;
    @Column(name = "target_id", property = "UNIQUE")
    public String targetId;


    public DemoModel() {
    }

    public String getId() {
        return id == null ? "" : id;
    }

    public DemoModel setId(String id) {
        this.id = id;
        return this;
    }

    public String getUserName() {
        return userName == null ? "" : userName;
    }

    public DemoModel setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public int getAge() {
        return age;
    }

    public DemoModel setAge(int age) {
        this.age = age;
        return this;
    }

    public String getExtra() {
        return extra == null ? "" : extra;
    }

    public DemoModel setExtra(String extra) {
        this.extra = extra;
        return this;
    }

    public String getTargetId() {
        return targetId == null ? "" : targetId;
    }

    public DemoModel setTargetId(String targetId) {
        this.targetId = targetId;
        return this;
    }
}
